<%-- 
    Document   : city
    Created on : Oct 6, 2013, 4:01:30 AM
    Author     : yoko
--%>

<%@page import="java.util.List"%>
<%@page import="org.apt.matrimony.beans.CityBeans"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>
        <% String country=request.getParameter("count");
          int cId=Integer.parseInt(country);
%>
          <select name="city" class="width_100" id="city" disabled>
              <jsp:useBean id="list" scope="session" class="org.apt.matrimony.methods.selects"></jsp:useBean>
                                                                <option value="">-Select-</option>
                                                                <%
                                                                             List<CityBeans> cityList=list.selectAllCitiesByCountry(cId);
                                                                    for(int i=0; i<cityList.size();i++){
                                                                    %>
                                                                    <option value="<%= cityList.get(i).getCity_Id() %>"><%= cityList.get(i).getCity_Name() %></option>
                                                                <%}%>
                                                                <option value="1">-other-</option>
         </select>
    </body>
</html>
